<template>
  <div>
    <!-- 但这样会会把全部组件都缓存起来，造成空间过大问题，所以需要给需要缓存的组件打标签 -->
    <keep-alive>
      <router-view v-if="$route.meta.needKeep" />
    </keep-alive>
    <router-view v-if="!$route.meta.needKeep" />
  </div>
</template>

<script>
export default {};
</script>

<style>
</style>